In Jekyll set a variable for the mail, e.g. in the _config.yml
email: name@mail.com
then use it in your page
Reach me under: {{ site.email | mailObfuscate }}
which will generate the following HTML
In Jekyll set a variable for the mail, e.g. in the _config.yml
email: name@mail.com
then use it in your page
Reach me under: {{ site.email | mailObfuscate }}
which will generate the following HTML
| package at.favre.lib.armadillo; | |
| import org.junit.Test; | |
| import java.nio.ByteBuffer; | |
| import java.nio.charset.StandardCharsets; | |
| import java.security.MessageDigest; | |
| import java.security.SecureRandom; | |
| import java.util.Arrays; |
| #!/bin/sh | |
| # This is part of my blog about AES: https://medium.com/p/7616beaaade9 | |
| # Inspired by https://blog.filippo.io/the-ecb-penguin/ | |
| # Convert your image to .ppm with Gimp or Photoshop | |
| # | |
| # Usage: ./ecb_img <image file as ppm> <password> | |
| # extract header and body |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.Random; | |
| public class Tester { | |
| public static String[] pws = {"ZeDRJ:_tu:", "ZeDRJ:_tu1", "ZeDRJ:_tu2", "ZeDRJ:_tu3", "ZeDRJ:_tu4", "ZeD1", "ZeDRJu1", "ZeDRJ:_tu19881", "98asfhj", "adasd", "()=H)d"}; | |
| public static Random r = new Random(); | |
| public static List<BCrypt.Verifyer> verifyers = new ArrayList<>(); | |
| public static boolean introduceMemoryLeak = false; |
| byte[] key = Bytes.random(16).array(); | |
| long id = ... | |
| IdMask<Long> idMask = IdMasks.forLongIds(Config.builder(key).build()); | |
| String maskedId = idMask.mask(id); | |
| //example: NPSBolhMyabUBdTyanrbqT8 | |
| long originalId = idMask.unmask(maskedId); |
| ## Random Data | |
| Original size: 1024 byte | |
| Compressed size (raw): 1047 byte | |
| Name enc diff % enc-comp diff | |
| ------------------------------------------------------------------ | |
| base85 1280 256 23% 1076 29 2% | |
| base64 1366 342 31% 1073 26 2% | |
| base36 1585 561 51% 1082 35 3% |
| import at.favre.lib.bytes.Bytes; | |
| import org.openjdk.jmh.annotations.*; | |
| import org.openjdk.jmh.infra.Blackhole; | |
| import java.util.concurrent.TimeUnit; | |
| @SuppressWarnings("CheckStyle") | |
| @State(Scope.Thread) | |
| @Fork(1) | |
| @Warmup(iterations = 2, time = 4) |
| ## Binary | |
| βββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| β Efficiency β 12.5 % (1 bit/char), 1 bit segments β | |
| β 32/64/128 bit β 1-32/1-64/1-128 chars β | |
| β Padding β false β | |
| β Const. Out. Len.β false β | |
| β Suited for β number encoding, debugging β | |
| β Alphabet β 01 β | |
| β Known Usages β none β |
| package at.favre.lib.bytes.otherPackage; | |
| import org.junit.Test; | |
| import javax.crypto.Cipher; | |
| import javax.crypto.SecretKey; | |
| import javax.crypto.spec.GCMParameterSpec; | |
| import javax.crypto.spec.SecretKeySpec; | |
| import java.nio.ByteBuffer; | |
| import java.nio.charset.StandardCharsets; |