Posted In: Java Core, Security

How to generate a random alpha-numeric string

Creating a random string with A-Z and 0-9 Techniques used 1. Apache Commons RandomStringUtils 2. SecureRandom and com.google.common.io.BaseEncoding 3. UUID.randomUUID() 4. https://www.random.org/strings/ In all these methods if you are using these strings for security and do not to take any chance with uniqueness then I suggest store it in DB with unique constraint or add […]

Read More

by , on August 30th, 2017

Posted In: Security

How to encrypt Password/String using Bouncy castle library

Bouncy castle library Maven bcprov-jdk16

Read More

by , on August 24th, 2017

Posted In: Apache, Commons, Security

How to encrypt Password/String using Apache Crypto

Apache Crypto library Maven commons-crypto Original Example

Read More

by , on August 24th, 2017

Posted In: Security

How to encrypt Password/String using Jasypt library

Jasypt library provide multiple methods to encrypt a password Maven jasypt

Read More

by , on August 24th, 2017

Posted In: Apache, Commons, Security

How to encrypt Password/String using Apache Codec

Apache codec provide multiple methods to encrypt a string Maven commons-codec

Read More

by , on August 24th, 2017

  • Categories