'2019/11/25'에 해당되는 글 3건

  1. 2019.11.25 java cipher
  2. 2019.11.25 pgcrypt encrypt() aes cbc ecb 그리고 padding
  3. 2019.11.25 sql zerofill
Programming/Java2019. 11. 25. 23:42

AES 라고만 주면 어떤게 기본값으로 작동하는지 default 값에 대한 내용이 없다.

  • AES/CBC/NoPadding (128)
  • AES/CBC/PKCS5Padding (128)
  • AES/ECB/NoPadding (128)
  • AES/ECB/PKCS5Padding (128)

[링크 : https://docs.oracle.com/javase/7/docs/api/javax/crypto/Cipher.html]

[링크 : https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#Cipher]

 

 

[링크 : http://www.fun25.co.kr/blog/java-aes128-cbc-encrypt-decrypt-example]

[링크 : https://medium.com/../aes-256bit-encryption-decryption-and-storing-in-the-database-using-java-..]

 

 

 

 

 

 

 

'Programming > Java' 카테고리의 다른 글

자바 annotation  (0) 2020.06.16
java oop 개념  (0) 2020.01.15
jaxb - Java Architecture for XML Binding  (0) 2019.06.25
jar 실행하기  (0) 2019.01.15
Object.clone()  (2) 2019.01.09
Posted by 구차니

일단~은

AES/CBC/PKCS5PADDING이 기본이라고 보면 될 듯?

 

Encrypt/decrypt data using the cipher method specified by type. The syntax of the type string is:

where algorithm is one of:

  • bf — Blowfish

  • aes — AES (Rijndael-128, -192 or -256)

and mode is one of:

  • cbc — next block depends on previous (default)

  • ecb — each block is encrypted separately (for testing only)

and padding is one of:

  • pkcs — data may be any length (default)

  • none — data must be multiple of cipher block size

[링크 : https://www.postgresql.org/docs/9.6/pgcrypto.html]

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

sql over() partition by  (0) 2019.11.28
pg_tables, pg_sequences  (0) 2019.11.28
sql TO_CHAR()  (0) 2019.11.23
sql where like %와 _  (0) 2019.11.22
split_part() 에서 나눠지지 않을 경우 없는 막기  (0) 2019.11.15
Posted by 구차니

 

 

[링크 : https://it.toolbox.com/question/padding-zeros-for-a-sequence-080714]

[링크 : https://stackoverflow.com/questions/6862766/how-to-create-postgresql-leading-zero-sequence-zerofill]

[링크 : https://w3resource.com/PostgreSQL/lpad-function.php]

[링크 : https://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=qna_db&wr_id=131902]

 

+

mysql zerofill 이라는 옵션제공(table 생성시)

[링크 : https://m.blog.naver.com/luvtoma/221179414916]

 

단, 표시가 다르게 될 뿐이지, 실제 저장되는 데이터 사이즈가 달라지는건 아니라는 이야기

[링크 : https://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=qna_db&wr_id=169515&page=638]

 

oracle에서는 LPAD나 RPAD혹은 TO_CHAR로 하라는거 봐서는

mysql에서만 제공하는 특수한 기능으로 보인다.

'프로그램 사용 > mysql & mariaDB' 카테고리의 다른 글

mariadb c# connector  (0) 2021.10.22
HeidiSQL  (2) 2021.08.18
mysql-dump compatible 함정 -_-  (0) 2019.09.04
mysql / unix-socket  (0) 2019.09.04
mysql exists  (0) 2019.07.05
Posted by 구차니