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