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
// First, import library | |
import org.apache.commons.codec.digest.DigestUtils; | |
// Function for generate SHA1 online | |
public static String generateSHA1(String inputString) throws Exception { | |
String sha1Hex = DigestUtils.sha1Hex(inputString); | |
return sha1Hex; | |
} |
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
var sha1 = require('crypto-js/sha1'); | |
/** | |
* Function for generate sha1 string | |
* @param {string} inputString: text need to generate | |
* @returns {string} | |
*/ | |
function generateSHA1(inputString) { | |
let hashText = sha1(inputString); | |
return hashText; |
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
package main | |
import ( | |
"crypto/md5" | |
"encoding/hex" | |
"fmt" | |
) | |
func generateMD5(inputString string) string { | |
bData := []byte(inputString) |
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
package com.nhsteck; | |
import org.apache.commons.codec.digest.DigestUtils; | |
public class MD5 { | |
public static String generateMD5(String inputString) throws Exception { | |
String md5Hex = DigestUtils.md5Hex(inputString); | |
return md5Hex; | |
} | |
} |
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
// First, install crypto-js | |
// npm install --save crypto-js | |
// Import crypto-js library | |
var md5 = require('crypto-js/md5'); | |
/** | |
* Function for generate md5 string | |
* @param {string} inputString: text need to generate MD5 | |
* @returns {string} |
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
stages: | |
- build | |
- test | |
- docker-build | |
- docker-release |
NewerOlder