Skip to content

Instantly share code, notes, and snippets.

View ensingerphilipp's full-sized avatar

Philipp Ensinger ensingerphilipp

View GitHub Profile
@ensingerphilipp
ensingerphilipp / ChaCha20Poly1305.java
Last active January 5, 2024 11:51
ChaCha20Poly1305 Encryption in Java11
package chaCha20Poly1305Encryption;
import javax.crypto.*;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.spec.AlgorithmParameterSpec;
import java.util.Base64;
@ensingerphilipp
ensingerphilipp / argon2i.java
Created September 24, 2019 11:22
Argon2i Implemenation in Java with BouncyCastle
import org.bouncycastle.crypto.generators.Argon2BytesGenerator;
import org.bouncycastle.crypto.params.Argon2Parameters;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import javax.crypto.NoSuchPaddingException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.Security;
import java.util.Base64;
@ensingerphilipp
ensingerphilipp / ECDSAKeyGenerator.java
Created September 24, 2019 11:24
ECDSA Signature Implementation in Java
package ecdsaSignature;
import java.security.*;
import java.security.spec.ECGenParameterSpec;
public class ECDSAKeyGenerator {
public static KeyPair generateKeyPair() throws NoSuchAlgorithmException, InvalidAlgorithmParameterException {
//It is required to use an epileptic Curve with Security Strength <= Security Strength of the used Hashing Function
@ensingerphilipp
ensingerphilipp / ShowSupportedCurves.java
Created September 24, 2019 11:24
Show available Elliptic Curve - Curves in Java
package ecdsaSignature;
import java.security.Security;
import java.util.Arrays;
//Helper Class to print all supported Epileptic Curves for use in ECDSA
//Refer to http://safecurves.cr.yp.to for a list of save epileptic curves
public class ShowSupportedCurves
@ensingerphilipp
ensingerphilipp / RsaEncryption.java
Created September 24, 2019 11:27
Secure RSA Encryption - Implementation in Java
package rsaEncryption;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.spec.OAEPParameterSpec;
import javax.crypto.spec.PSource;
import java.security.*;
import java.security.spec.MGF1ParameterSpec;
@ensingerphilipp
ensingerphilipp / RsaKeyGenerator.java
Created September 24, 2019 11:29
Secure RSA Signature implementation in Java
package rsaSignature;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
public class RsaKeyGenerator {
//Generate RSA Key with size of at least 3072 bits
@ensingerphilipp
ensingerphilipp / keybase.md
Created October 14, 2019 16:51
keybase.md

Keybase proof

I hereby claim:

  • I am exspir3 on github.
  • I am ensi (https://keybase.io/ensi) on keybase.
  • I have a public key ASBah2gTaUraxsNIrtV0T368yfrf0exny8VvbW9WOSTSqAo

To claim this, I am signing this object:

@ensingerphilipp
ensingerphilipp / keybase.md
Created March 5, 2020 12:41
Keybase Identitiy Proof

Keybase proof

I hereby claim:

  • I am ensingerphilipp on github.
  • I am ensi (https://keybase.io/ensi) on keybase.
  • I have a public key ASBah2gTaUraxsNIrtV0T368yfrf0exny8VvbW9WOSTSqAo

To claim this, I am signing this object:

@ensingerphilipp
ensingerphilipp / pallas.sh
Last active July 11, 2022 11:29 — forked from Siguza/pallas.sh
newstyle OTA
#!/usr/bin/env zsh
set -e;
set +m; # Job control would've been nice, but manual round robin it is, sigh.
if [ -z "${ZSH_VERSION+x}" ]; then
echo 'Try again with zsh.';
exit 1;
fi;
@ensingerphilipp
ensingerphilipp / tutorial-alternate-updated.md
Last active November 21, 2022 01:23 — forked from dhinakg/tutorial-alternate.md
tutorial-alternate-updated.md

Note: I took this Guide from https://gist.github.com/dhinakg/5dc595e39440e6d68a24d38e6fea926d and added a way on how to find your AssetAudiences

Note: This writeup is for advanced users and developers. For a guide that will actually walk you through this, ios.cfw.guide is updated. guides.stkc.win should be soon™️.

13.x appears to have issues. 13.5 is confirmed to fail to check updates once you change the audience. If any other versions do this, please let me know.

So, I got bored and decided to do more research into alternates. Turns out you can still abuse it to update to a currently signed Version (15.4.1 as of writing) on iOS versions that don't support alternates. You're welcome.

This requires a jailbreak. Of course, you can do the backup editing stuff if you're not JBed but: