114 references to ToBase64String
mscorlib (18)
system\runtime\remoting\identity.cs (1)
477
String random = System.Convert.
ToBase64String
(GetRandomBytes());
system\runtime\remoting\soapinteroptypes.cs (1)
1033
return SoapType.LineFeedsBin64(Convert.
ToBase64String
(_value));
system\security\cryptography\dsa.cs (8)
248
sb.Append("<P>"+Convert.
ToBase64String
(dsaParams.P)+"</P>");
249
sb.Append("<Q>"+Convert.
ToBase64String
(dsaParams.Q)+"</Q>");
250
sb.Append("<G>"+Convert.
ToBase64String
(dsaParams.G)+"</G>");
251
sb.Append("<Y>"+Convert.
ToBase64String
(dsaParams.Y)+"</Y>");
254
sb.Append("<J>"+Convert.
ToBase64String
(dsaParams.J)+"</J>");
257
sb.Append("<Seed>"+Convert.
ToBase64String
(dsaParams.Seed)+"</Seed>");
258
sb.Append("<PgenCounter>"+Convert.
ToBase64String
(Utils.ConvertIntToByteArray(dsaParams.Counter))+"</PgenCounter>");
263
sb.Append("<X>"+Convert.
ToBase64String
(dsaParams.X)+"</X>");
system\security\cryptography\rsa.cs (8)
335
sb.Append("<Modulus>"+Convert.
ToBase64String
(rsaParams.Modulus)+"</Modulus>");
337
sb.Append("<Exponent>"+Convert.
ToBase64String
(rsaParams.Exponent)+"</Exponent>");
340
sb.Append("<P>"+Convert.
ToBase64String
(rsaParams.P)+"</P>");
341
sb.Append("<Q>"+Convert.
ToBase64String
(rsaParams.Q)+"</Q>");
342
sb.Append("<DP>"+Convert.
ToBase64String
(rsaParams.DP)+"</DP>");
343
sb.Append("<DQ>"+Convert.
ToBase64String
(rsaParams.DQ)+"</DQ>");
344
sb.Append("<InverseQ>"+Convert.
ToBase64String
(rsaParams.InverseQ)+"</InverseQ>");
345
sb.Append("<D>"+Convert.
ToBase64String
(rsaParams.D)+"</D>");
PresentationCore (1)
Core\CSharp\System\Windows\Ink\StrokeCollectionConverter.cs (1)
149
return Convert.
ToBase64String
(ms.ToArray());
System (11)
net\System\Net\_BasicClient.cs (1)
113
string responseHeader = BasicClient.AuthType + " " + Convert.
ToBase64String
(bytes);
net\System\Net\_NTAuthentication.cs (1)
650
outgoingBlob = Convert.
ToBase64String
(decodedOutgoingBlob);
net\System\Net\HttpListener.cs (1)
1669
outBlob = Convert.
ToBase64String
(decodedOutgoingBlob);
net\System\Net\mail\SmtpLoginAuthenticationModule.cs (2)
58
return new Authorization(Convert.
ToBase64String
(System.Text.Encoding.UTF8.GetBytes(userName)), false);
65
return new Authorization(Convert.
ToBase64String
(System.Text.Encoding.UTF8.GetBytes(cachedCredential.Password)), true);
net\System\Net\mail\SmtpNegotiateAuthenticationModule.cs (1)
69
resp = Convert.
ToBase64String
(byteResp);
net\System\Net\WebSockets\WebSocketHelpers.cs (2)
207
retVal = Convert.
ToBase64String
(sha1.ComputeHash(toHash));
369
request.Headers[HttpKnownHeaderNames.SecWebSocketKey] = Convert.
ToBase64String
(keyBlob);
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (1)
32
private static readonly string s_DummyWebsocketKeyBase64 = Convert.
ToBase64String
(new byte[16]);
sys\system\configuration\LocalFileSettingsProvider.cs (1)
467
serializedValue = Convert.
ToBase64String
(buf);
sys\system\configuration\SettingsPropertyValue.cs (1)
257
return Convert.
ToBase64String
(buffer);
System.Activities (1)
System\Activities\Debugger\Symbol\WorkflowSymbol.cs (1)
128
return Convert.
ToBase64String
(buffer);
System.Configuration (1)
System\Configuration\DPAPIProtectedConfigurationProvider.cs (1)
114
return Convert.
ToBase64String
(buf);
System.Data (7)
fx\src\data\System\Data\Common\ObjectStorage.cs (1)
382
return Convert.
ToBase64String
((byte[])value);
fx\src\data\System\Data\Common\SQLConvert.cs (2)
713
return Convert.
ToBase64String
(((SqlBinary)value).Value);
719
return Convert.
ToBase64String
(((SqlBytes)value).Value);
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256Factory.cs (1)
50
StringBuilder algorithmKeyBuilder = new StringBuilder(Convert.
ToBase64String
(encryptionKey.RootKey), SqlSecurityUtility.GetBase64LengthFromByteLength(encryptionKey.RootKey.Length) + 4/*separators, type and version*/);
fx\src\data\System\Data\SqlClient\SqlAes256CbcFactory.cs (1)
54
StringBuilder algorithmKeyBuilder = new StringBuilder(Convert.
ToBase64String
(encryptionKey.RootKey), SqlSecurityUtility.GetBase64LengthFromByteLength(encryptionKey.RootKey.Length) + 4/*separators, type and version*/);
fx\src\data\System\Data\SqlClient\SqlSymmetricKeyCache.cs (1)
48
cacheLookupKeyBuilder.Append(Convert.
ToBase64String
(keyInfo.encryptedKey));
fx\src\data\System\Data\SQLTypes\SQLBinary.cs (1)
506
writer.WriteString(Convert.
ToBase64String
(m_value));
System.Data.Services (1)
System\Data\Services\Parsing\WebConvert.cs (1)
674
result = Convert.
ToBase64String
(byteArray);
System.Data.Services.Client (2)
parent\Server\System\Data\Services\Parsing\WebConvert.cs (1)
674
result = Convert.
ToBase64String
(byteArray);
System\Data\Services\Client\ClientConvert.cs (1)
305
return Convert.
ToBase64String
((byte[])propertyValue);
System.IdentityModel (15)
System\IdentityModel\CanonicalFormWriter.cs (1)
20
EncodeAndWrite(stream, Convert.
ToBase64String
(data));
System\IdentityModel\Claims\ClaimsConversionHelper.cs (2)
159
_value = Convert.
ToBase64String
(((byte[])claim.Resource));
165
_value = Convert.
ToBase64String
(((byte[])claim.Resource));
System\IdentityModel\Diagnostics\DigestTraceRecordHelper.cs (2)
76
writer.WriteElementString(CanonicalOctets, Convert.
ToBase64String
(contentBuffer));
82
writer.WriteElementString(CanonicalOctetsHash, Convert.
ToBase64String
(_hash.Hash));
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (1)
2278
binaryData = Convert.
ToBase64String
(binaryExchange.BinaryData);
System\IdentityModel\Tokens\BinaryKeyIdentifierClause.cs (1)
76
return Convert.
ToBase64String
(this.identificationData);
System\IdentityModel\Tokens\EncryptedKeyIdentifierClause.cs (1)
83
Convert.
ToBase64String
(GetRawBuffer()), this.EncryptionMethod);
System\IdentityModel\Tokens\RsaKeyIdentifierClause.cs (2)
79
Convert.
ToBase64String
(this.rsaParameters.Modulus),
80
Convert.
ToBase64String
(this.rsaParameters.Exponent));
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (2)
695
writer.WriteAttributeString(WSC.Attributes.Nonce, WSC.Namespace, Convert.
ToBase64String
(nonce));
1685
key = Convert.
ToBase64String
(hashAlgorithm.ComputeHash(Encoding.UTF8.GetBytes(stringBuilder.ToString())));
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (1)
825
key = Convert.
ToBase64String
(hashAlgorithm.ComputeHash(Encoding.UTF8.GetBytes(stringBuilder.ToString())));
System\IdentityModel\X509Util.cs (1)
192
string thumbprint = Convert.
ToBase64String
(certificate.GetCertHash());
System\ServiceModel\Security\EncryptedKeyHashIdentifierClause.cs (1)
35
return string.Format(CultureInfo.InvariantCulture, "EncryptedKeyHashIdentifierClause(Hash = {0})", Convert.
ToBase64String
(GetRawBuffer()));
System.Runtime.Serialization (1)
System\Runtime\Serialization\ExtensionDataReader.cs (1)
716
this.value = (bytes == null) ? String.Empty : Convert.
ToBase64String
(bytes);
System.Security (15)
system\security\cryptography\xml\cipherdata.cs (1)
84
cipherValueElement.AppendChild(document.CreateTextNode(Convert.
ToBase64String
(CipherValue)));
system\security\cryptography\xml\keyinfo.cs (12)
256
pElement.AppendChild(xmlDocument.CreateTextNode(Convert.
ToBase64String
(dsaParams.P)));
260
qElement.AppendChild(xmlDocument.CreateTextNode(Convert.
ToBase64String
(dsaParams.Q)));
264
gElement.AppendChild(xmlDocument.CreateTextNode(Convert.
ToBase64String
(dsaParams.G)));
268
yElement.AppendChild(xmlDocument.CreateTextNode(Convert.
ToBase64String
(dsaParams.Y)));
274
jElement.AppendChild(xmlDocument.CreateTextNode(Convert.
ToBase64String
(dsaParams.J)));
280
seedElement.AppendChild(xmlDocument.CreateTextNode(Convert.
ToBase64String
(dsaParams.Seed)));
284
counterElement.AppendChild(xmlDocument.CreateTextNode(Convert.
ToBase64String
(Utils.ConvertIntToByteArray(dsaParams.Counter))));
344
modulusElement.AppendChild(xmlDocument.CreateTextNode(Convert.
ToBase64String
(rsaParams.Modulus)));
348
exponentElement.AppendChild(xmlDocument.CreateTextNode(Convert.
ToBase64String
(rsaParams.Exponent)));
680
subjectKeyIdElement.AppendChild(xmlDocument.CreateTextNode(Convert.
ToBase64String
(subjectKeyId)));
696
x509Element.AppendChild(xmlDocument.CreateTextNode(Convert.
ToBase64String
(certificate.GetRawCertData())));
703
crlElement.AppendChild(xmlDocument.CreateTextNode(Convert.
ToBase64String
(m_CRL)));
system\security\cryptography\xml\reference.cs (1)
200
digestValueElement.AppendChild(document.CreateTextNode(Convert.
ToBase64String
(m_digestValue)));
system\security\cryptography\xml\signature.cs (1)
114
signatureValueElement.AppendChild(document.CreateTextNode(Convert.
ToBase64String
(m_signatureValue)));
System.ServiceModel (12)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
694
credentialHash = Convert.
ToBase64String
(digestBytes);
System\ServiceModel\Channels\PeerSecurityHelpers.cs (1)
429
writer.WriteString(Convert.
ToBase64String
(this.authenticator));
System\ServiceModel\Channels\PipeConnection.cs (1)
2836
builder.Append(Convert.
ToBase64String
(hashedBytes));
System\ServiceModel\Channels\WebSocketHelper.cs (1)
56
return Convert.
ToBase64String
(sha.ComputeHash(bytes));
System\ServiceModel\Configuration\IdentityElement.cs (1)
115
this.Certificate.EncodedValue = Convert.
ToBase64String
(certs.Export(certs.Count == 1 ? X509ContentType.SerializedCert : X509ContentType.SerializedStore));
System\ServiceModel\Diagnostics\PeerNodeTraceRecord.cs (1)
249
writer.WriteElementString("Thumbprint", Convert.
ToBase64String
(claim.Resource as byte[]));
System\ServiceModel\RsaEndpointIdentity.cs (2)
75
writer.WriteElementString(XD.XmlSignatureDictionary.Prefix.Value, XD.XmlSignatureDictionary.Modulus, XD.XmlSignatureDictionary.Namespace, Convert.
ToBase64String
(parameters.Modulus));
76
writer.WriteElementString(XD.XmlSignatureDictionary.Prefix.Value, XD.XmlSignatureDictionary.Exponent, XD.XmlSignatureDictionary.Namespace, Convert.
ToBase64String
(parameters.Exponent));
System\ServiceModel\Security\SctClaimSerializer.cs (1)
48
writer.WriteAttributeString(dictionary.Sid, dictionary.EmptyString, Convert.
ToBase64String
(sidBytes));
System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (1)
180
writer.WriteLine(" Nonce: {0}", Convert.
ToBase64String
(this.Nonce));
System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
221
this.keyString = Convert.
ToBase64String
(this.key);
System\ServiceModel\X509CertificateEndpointIdentity.cs (1)
90
writer.WriteElementString(XD.XmlSignatureDictionary.X509Certificate, XD.XmlSignatureDictionary.Namespace, Convert.
ToBase64String
(certificateCollection[i].RawData));
System.ServiceModel.Channels (2)
System\ServiceModel\Channels\DuplicateMessageDetector.cs (1)
50
hashString = Convert.
ToBase64String
(hash);
System\ServiceModel\Channels\XmlByteStreamReader.cs (1)
175
this.base64StringValue = Convert.
ToBase64String
(ReadContentAsBase64());
System.Web (10)
Compilation\BuildManager.cs (1)
1251
string s = Convert.
ToBase64String
(data).ToLower(CultureInfo.InvariantCulture);
Configuration\MachineKeySection.cs (1)
739
result = Convert.
ToBase64String
(hash);
HttpCachePolicy.cs (1)
746
_etag = Convert.
ToBase64String
(CryptoUtil.ComputeSHA256Hash(Encoding.UTF8.GetBytes(sb.ToString())));
OutputCacheModule.cs (1)
280
value = Convert.
ToBase64String
(CryptoUtil.ComputeSHA256Hash(buf));
Profile\ProfileModule.cs (1)
242
sVal = Convert.
ToBase64String
((byte[])sVal);
Security\ADMembershipProvider.cs (1)
3409
return Convert.
ToBase64String
(EncryptPassword(bAll, _LegacyPasswordCompatibilityMode));
Security\SQLMembershipProvider.cs (2)
1944
return Convert.
ToBase64String
(bRet);
1972
return Convert.
ToBase64String
(buf);
State\OutOfProcStateClientManager.cs (1)
108
string idHash = Convert.
ToBase64String
(CryptoUtil.ComputeSHA256Hash(Encoding.UTF8.GetBytes(appId)));
Util\HttpEncoder.cs (1)
868
base64Str = Convert.
ToBase64String
(input);
System.Web.Extensions (6)
ApplicationServices\ApplicationServiceHelper.cs (1)
194
defaultValue = Convert.
ToBase64String
((byte[])property.DefaultValue);
ClientServices\Providers\ClientFormsAuthenticationMembershipProvider.cs (2)
487
string passwordSalt = Convert.
ToBase64String
(buf);
564
return Convert.
ToBase64String
(buffer);
ClientServices\Providers\ClientSettingsProvider.cs (2)
773
cd.SettingsValues[iter] = Convert.
ToBase64String
((byte[])val);
808
SqlHelper.AddParameter(conn, cmd, "@PropVal", Convert.
ToBase64String
((byte[])val));
Handlers\ScriptResourceHandler.cs (1)
175
string hash = Convert.
ToBase64String
(assembly.ManifestModule.ModuleVersionId.ToByteArray());
System.Web.Services (3)
System\Web\Services\Protocols\LogicalMethodInfo.cs (1)
559
key = Convert.
ToBase64String
(bytes);
System\Web\Services\Protocols\RemoteDebugger.cs (2)
205
string bufferString = Convert.
ToBase64String
(buffer);
310
string stringBuffer = Convert.
ToBase64String
(buffer);
System.Windows.Forms (5)
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (1)
1817
timestamp = Convert.
ToBase64String
(encodedBytes);
winforms\Managed\System\Resources\ResXDataNode.cs (1)
340
string raw = Convert.
ToBase64String
(data);
winforms\Managed\System\Resources\ResXResourceWriter.cs (1)
718
string raw = Convert.
ToBase64String
(data);
winforms\Managed\System\WinForms\Control.cs (2)
18046
propValue = Convert.
ToBase64String
(bytes);
18062
propValue = Convert.
ToBase64String
(data);
System.Xml (1)
System\Xml\Schema\XmlValueConverter.cs (1)
708
return Convert.
ToBase64String
(value);
WindowsBase (2)
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptionTransform.cs (1)
938
string base64UserName = Convert.
ToBase64String
(userNameBytes);
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (1)
521
String hashValueString = System.Convert.
ToBase64String
(HashStream(hashAlgorithm, transformStream));