Skip to content
Permalink
Browse files

Update Crypto.java

Sha-1 has now been totally broken, so make a note of this in the documentation.
  • Loading branch information
LadyCailin committed Jan 7, 2020
1 parent 7d5c44e commit 97f543e7bf09dde4321114b8c5b81c07f96cea85
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/com/laytonsmith/core/functions/Crypto.java
@@ -226,8 +226,8 @@ public String getName() {

@Override
public String docs() {
return "string {val} Returns the sha1 hash of the specified string. Note that sha1 is considered more secure than md5,"
+ " but is also not considered secure. sha-256 should be used instead for storing sensitive"
return "string {val} Returns the sha1 hash of the specified string. Note that sha1 is considered no more secure than md5,"
+ " and should not be used in a security context. sha-256 should be used instead for storing sensitive"
+ " data. It is a one way hashing algorithm. This function is aware of and compatible with"
+ " secure_string.";
}

0 comments on commit 97f543e

Please sign in to comment.
You can’t perform that action at this time.