I hereby claim:
- I am jehrhardt on github.
- I am jehrhardt (https://keybase.io/jehrhardt) on keybase.
- I have a public key ASBvdwoxc5ofY02pksHEurtNDEioiS9KrIJFCqqhURunkwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import javax.crypto.Cipher; | |
import java.security.NoSuchAlgorithmException; | |
public class KeyLengthDetector { | |
public static void main(String[] args) { | |
int allowedKeyLength = 0; | |
try { | |
allowedKeyLength = Cipher.getMaxAllowedKeyLength("AES"); | |
} catch (NoSuchAlgorithmException e) { |
# Copyright © 2014 Jan Ehrhardt | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in |
;;; derjan.el --- derjan's customizations of Emacs prelude | |
;; Copyright © 2013-2015 Jan Ehrhardt | |
;; | |
;; This program is free software: you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by | |
;; the Free Software Foundation, either version 3 of the License, or | |
;; (at your option) any later version. | |
;; | |
;; This program is distributed in the hope that it will be useful, |
(s/def ::bar (s/and int? even? #(> % 1000))) | |
(s/def ::foo (s/keys :req [::bar])) | |
(s/valid? ::foo {:bar 10000}) |
case class Foo(bar: Int) |
# oh-my-zsh location | |
ZSH=$HOME/.oh-my-zsh | |
# Use lambda theme | |
ZSH_THEME="robbyrussell" | |
# Use plugins for typical tools | |
plugins=(brew git) | |
# Load oh-my-zsh |