-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Zachary Whitley edited this page Mar 26, 2021
·
9 revisions
Welcome to the stardog-extensions wiki!
- Duration and intervals
- Days of the week
- Boolean
- Use Groovy instead of Javascript? http://groovy-lang.org/integrating.html
- Diff/match/patch git like thing https://github.com/google/diff-match-patch/wiki/Language:-Java
- Yara rules https://github.com/p8a/yara-java
- ascii charts, box plots, etc
- bar codes, QR codes etc
- short id's shortid()
import java.security.SecureRandom;
import java.util.Base64;
public class SecureRandomString {
private static final SecureRandom random = new SecureRandom();
private static final Base64.Encoder encoder = Base64.getUrlEncoder().withoutPadding();
public static String generate() {
byte[] buffer = new byte[20];
random.nextBytes(buffer);
return encoder.encodeToString(buffer);
}
}