This file contains 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
<?xml version="1.0"?> | |
<xs:schema | |
targetNamespace="https://gist.githubusercontent.com/rchomczyk/31fff815e757f9dff61bb9f2c99d38aa/raw/bc23d70320361356a2b93a5f1691d58cc7d7f9ee/if.xsd" | |
elementFormDefault="qualified" | |
xmlns="https://gist.githubusercontent.com/rchomczyk/31fff815e757f9dff61bb9f2c99d38aa/raw/bc23d70320361356a2b93a5f1691d58cc7d7f9ee/if.xsd" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:simpleType name="slot"> | |
<xs:restriction base="xs:integer"> | |
<xs:minInclusive value="0"/> | |
<xs:maxInclusive value="53"/> |
This file contains 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
private String decrypt(String decryptionKey, String encodedValue) { | |
String[] splitSample = new String(Base64.getDecoder().decode(encodedValue), StandardCharsets.UTF_8).split("\\*\\*uLicense\\*\\*"); | |
String salt = splitSample[0]; | |
String pass = splitSample[1]; | |
try { | |
SecretKeySpec secretKeySpec = new SecretKeySpec( | |
decryptionKey.getBytes(StandardCharsets.UTF_8), "AES"); | |
IvParameterSpec parameterSpec = new IvParameterSpec(Hex.decodeHex(salt)); |