WWDC 2006 2007 2008 2009 2010 2011 2012 2013 2014
The docs for GitHub show a command to create a key with the ed25519
encryption method which is not allowed by Xcode. Even if you are not using the Source Control features in Xcode you will often need to use an account with GitHub when you are consuming Swift packages which are pulled from GitHub.
For SSH keys there are 4 algorithms.
- 🚨 DSA: This is an older algorithm which is no longer supported and is superceded with more modern algorithms.
⚠️ RSA: This algorithm was an improvement but it is now outdated and a more modern method should be used.- 👀 ECDSA: Another improvement which is dependent on your computer's ability to generate random numbers.
- ✅ Ed25519: The most recommended public-key algorithm today which you should use with GitHub.
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
This file contains hidden or 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
func canFail() -> Result<Int, Error> { | |
Bool.random() | |
? .success(7) | |
: .failure(NSError()) | |
} | |
func neverFail() -> Result<Int, Never> { .success(9) } | |
func absurd<A>(_ never: Never) -> A {} |