In Jekyll set a variable for the mail, e.g. in the _config.yml
email: [email protected]
then use it in your page
Reach me under: {{ site.email | mailObfuscate }}
which will generate the following HTML
| 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); |
| 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; |
| #!/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 |
| 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; |
In Jekyll set a variable for the mail, e.g. in the _config.yml
email: [email protected]
then use it in your page
Reach me under: {{ site.email | mailObfuscate }}
which will generate the following HTML
| /* | |
| Copyright 2017 Patrick Favre-Bulle | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software |
| MessageDigest digest = null; | |
| try { | |
| digest = MessageDigest.getInstance("SHA-256"); | |
| byte[] hash = digest.digest("hallo".getBytes(Charset.forName("UTF-8"))); | |
| } catch (NoSuchAlgorithmException e) { | |
| e.printStackTrace(); | |
| } | |
| Provider[] providers = Security.getProviders(); | |
| for (Provider provider : providers) { |
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest package="com.company.seismicbug" | |
| xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <application | |
| android:allowBackup="true" | |
| android:icon="@mipmap/ic_launcher" | |
| android:label="@string/app_name" | |
| android:roundIcon="@mipmap/ic_launcher_round" | |
| android:supportsRtl="true" |
| /* | |
| * Copyright 2013 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |