added samples
[windows-sources.git] / sdk / samples / WCFSamples / TechnologySamples / Basic / Service / Security / ExtendedProtection / CS / service / GetKey.svc.cs
blob4c81a8084a454bb115f4163959685a4b92507280
1 //----------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 //----------------------------------------------------------------
5 using System;
6 using System.Text;
8 namespace Microsoft.Samples.ExtendedProtectionPolicy
10 public class GetKey : IGetKey
12 public string GetKeyFromPasscode(string passCode)
14 // Gets a key from the input passcode string
15 return Convert.ToBase64String(Encoding.UTF8.GetBytes(passCode));