Giter Site home page Giter Site logo

kisaseed256's Introduction

SEED256 for JAVA (jar)

hihoyeho님의 Seed 256 Java 버전을 jar로 배포 하기 위한 저장소 입니다.

사용법

kisaseed256-1.x.jar를 라이브러리 추가 후

import com.github.johwanghee.encryption.kisaseed256.KisaSeed256;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class SeedTest {

    @Test
    public void testDecrypt() throws InvalidKeyException {
        String key = "YouMustEncryptKeyChangeLength32b";
        String text = "123";
        System.out.println("KEY LENGTH :::: " + key.getBytes().length);
        
        // 암호화
        String enc = KisaSeed256.Encrypt(text, key);
        System.out.println("Encrypt :::: " + enc);

        // 복호화
        String dec = KisaSeed256.Decrypt(enc, key);
        System.out.println("Decrypt :::: " + dec);
        assertEquals(text, dec);
    }
}

참고

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.