본문 바로가기

전체 글

1. 자바 시작 (공부 메모) *관련 용어 이해 -바이트 코드(byte code) : 자바 컴파일러가 자바 소스 프로그램을 컴파일한 기계어로서 , 자바 가상 머신에서 실행되는 바이너리 코드. CPU에 의해 직접 실행 되는게 아니라 가상 기계가 바이트코드를 인터프리터 방식으로 실행 -자바는 플랫폼(운영체제)에 독립적으로 돌아가는 것이 장점. 자바 가상머신 때문 //자바 가상 머신 자체는 플랫폼 종속적임 -JDK(java development kit) - 자바 컴파일러 같은 자바 응용프로그램 개발하는데 필요한 도구 + 자바 프로그램이 실행될 때 필요한 자바 가상 기계와 표준 클래스 파일들 포함한 JRE -JRE(java run-time enviorment) -자바 프로그램이 실행될 때 필요한 자바 가상 기계와 표준 클래스 파일들 포함 *.. 더보기
SHA2 SHA-256 , SHA-512 pseudo code로 원리 이해하기 Note 1: All variables are 32 bit unsigned integers and addition is calculated modulo 232 Note 2: For each round, there is one round constant k[i] and one entry in the message schedule array w[i], 0 ≤ i ≤ 63 Note 3: The compression function uses 8 working variables, a through h Note 4: Big-endian convention is used when expressing the constants in this pseud.. 더보기
SHA1 SHA1 의 동작원리 pseudo code 로 이해해보기 이 그림은 한 단계의 opertaion을 나타냄 Note 1: All variables are unsigned 32-bit quantities and wrap modulo 232 when calculating, except for ml, the message length, which is a 64-bit quantity, and hh, the message digest, which is a 160-bit quantity. Note 2: All constants in this pseudo code are in big endian. Within each word, the most significant byte is stored in the leftmo.. 더보기