This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT NVL(LOWER(T.EMAIL),'-')EMAIL | |
| FROM TABLE_NAME T | |
| WHERE REGEXP_LIKE(NVL(LOWER(T.EMAIL),'-'), '^[a-zA-Z0-9!#$%''\*\+-/=\?^_`\{|\}~]+@[a-zA-Z0-9._%-]+\.[a-zA-Z]{2,4}$'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Random; | |
| import javax.xml.bind.DatatypeConverter; | |
| /** | |
| * Generate random seed | |
| * | |
| * @param seedlength Seed length in bytes unit | |
| * @return seed | |
| */ | |
| public String generateSeed(int seedlength) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.*; | |
| import java.util.logging.*; | |
| import javax.xml.bind.DatatypeConverter; | |
| /** | |
| * Hashing with SHA1 | |
| * | |
| * @param input String to hash | |
| * @return String hashed | |
| */ |